home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Auge 4000
/
Auge 4000 #64 (1992-08-13)(Amiga User Gruppe Einzugsgebiet 4000).zip
/
Auge 4000 #64 (1992-08-13)(Amiga User Gruppe Einzugsgebiet 4000).adf
/
TKEd
/
rexx
/
StripBlankLines.tked
< prev
Wrap
Text File
|
1992-06-12
|
745b
|
26 lines
/**
** ARexx program to delete all blank lines of text
**
** © Tom Kroener '92
**
**/
options results
address 'TKEd.1' /* Portname of the first started TKEd */
BeginOfFile /* Go to start */
LastLine /* Get number of the last line */
LastLineNr = result
LineNr = 0 /* Counter for the lines */
DO WHILE LineNr <= LastLineNr /* Counts until it reaches the last line */
GetLineLen /* Returns the length of the current line */
IF result = 0 /* If blank line then delete */
THEN DeleteLine
ELSE Cursor "DOWN" /* Goto next line */
LineNr = LineNr + 1 /* Increment linecounter */
END
EXIT 0